package com.gzl.test.struts.action;

public class FristAction {
	private String uname;
	private int age;
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getUname() {
		return uname;
	}
	
	public void setUname(String uname) {
		this.uname = uname;
	}
	
	public String execute() throws Exception{
		System.out.println("HI struts2!!!");
		if ("gzl".equals(getUname()) && age == 24) {
			System.out.println("gzl  age 25!!!");
			return "sucess";
		}else{
			return "error";
		}
		
		
	}

}
